this figure includes axes that are not compatible with tight_layout, so results might be incorrect

27

fig, ax = plt.subplots()
fig.set_tight_layout(False)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
ax.plot(X,C)
ax.plot(X,S)
plt.show()

Comments

Submit
0 Comments